// const fs=require('fs')
/* const data='nodejs服务端编程'
fs.writeFile('./node.txt',data,err=>{
    if(err){
        console.log(err);
    }else{
        console.log("文件写入成功！");
    }
}) */

const fs=require('fs')
const data='hhhhhhh'
fs.writeFile('./h.txt',data,err=>{
    if(err){
        console.log(err);
    }else{
        console.log("文件写入成功！");
    }
})